FROM openjdk:8-jdk-alpine

LABEL maintainer="Roy Kim <roy.kim@navercorp.com>"

ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.2.0}

RUN mkdir -p /pinpoint/config \
    && mkdir -p /pinpoint/scripts

COPY /build/config/pinpoint-web.properties /pinpoint/config/
COPY /build/scripts/start-web.sh /pinpoint/scripts/
COPY /pinpoint-web-boot-${PINPOINT_VERSION}.jar /pinpoint/pinpoint-web-boot.jar

ENTRYPOINT ["sh", "/pinpoint/scripts/start-web.sh"]

